package org.example.clouddemo.order.service.common.mapper;

import org.example.clouddemo.bean.common.entity.Order;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper
public interface OrderServiceMapper {


     boolean insert(Order order);

     int deleteById(Long id);

     List<Order> selectAll();

     List<Order> selectByUserId(Long userId);

     Order selectByUserIdAndOrderId(Long userId, Long orderId);

     boolean updateById(Order order);

     Order  selectOneByOrderId(Long orderId);
}
